package com.tjbklx1.thread.chap02.practise04;

public final class UserInfo {

	private final StringBuffer info;

	public UserInfo(String name, String address) {
		this.info = new StringBuffer("<info name=" + name + ",address="
				+ address + ">");
	}

	public StringBuffer getInfo() {
		return this.info;
	}

	@Override
	public String toString() {
		return "[UserInfo:" + info + "]";
	}
}
